package io.github.wx.service;

import com.jfinal.plugin.activerecord.SqlPara;
import io.github.wx.dao.model.SysUser;

import java.util.List;

/**
 * Created by jie on 2017/4/7.
 * 用户信息Service
 */
public class UserService {
    /**
     * 获取用户
     *
     * @param user SysUser
     * @return sysUserList
     */
    public List<SysUser> getUser(SysUser user) {
        SqlPara sqlPara = SysUser.dao.getSqlPara("user.findUserByNameAndPwd", user);
        List<SysUser> sysUserList = SysUser.dao.find(sqlPara);
        return sysUserList;
    }
}
